function Counter() {
    let root = document.getElementById('root');
    let counter = document.createElement('div');
    counter.innerText = 1;
    counter.onclick = () => {
        counter.innerText = parseInt(counter.innerText) + 1;
        console.log(counter.innerText)
    };
    root.append(counter)
    const arr = [1,2,3]
    arr.map((item)=>{
        console.log(item)
    })
}

export default Counter